package com.lc.sell.service.serviceImpl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.lc.sell.entity.OrderDetail;
import com.lc.sell.mapper.OrderDetailMapper;
import com.lc.sell.mapper.OrderMapper;
import com.lc.sell.service.OrderDetailService;
import com.lc.sell.vo.OrderDetailVO;
import com.lc.sell.vo.ResultVo;
import com.sun.org.apache.regexp.internal.RE;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class OrderDetailServiceImpl extends ServiceImpl<OrderDetailMapper, OrderDetail> implements OrderDetailService {
    @Autowired
    private OrderDetailMapper orderDetailMapper;

    @Override
    public ResultVo findByIdDetail(String orderId,Integer mid) {
        List<OrderDetailVO> detail = orderDetailMapper.findByIdDetail(orderId,mid);
        return new ResultVo(200,"成功",detail);
    }
}
